Fix xcopy invocation in sh/copy#240
Conversation
Separated parts with a space and added /-i switch, which disables prompt by the xcopy command. I found this bug, when I was trying to create the quickbin with `spork/declare-cc`.
|
Got curious about |
|
Ok, it is a Windows 11 thing. This is the result of the invocation of |
|
I need to test it on the POSIX. Converted to draft for the moment. |
|
Strangely, on my Alpine WSL, everything is OK. May I ask @sogaiu to check the tests on your Linux machine? |
|
With 5cb7db9 I get some error output using Similar output with This is on a Linux Mint machine FWIW. |
|
FWIW, with bc1744c, both |
|
Looking to merge this, but is the issue with the missing |
|
Unfortunately, I haven't found any simple solution. But in my opinion the current version will fail this PR's test, too. I may prepare new PR just with tests and see how it goes. I do not have access to any win 10 machine. |
|
Rereading this pr, still a bit confused. The original post says:
Looking at the output in this comment, I see:
Assuming that is basically the same as Any idea what I am missing / misunderstanding? Does the The docs for it seem to suggest it might work:
May be the docs are wrong or I'm again missing something 😅 Is there some code I might be able to reproduce:
with? |
|
@pepe Do you have any thoughts about the comment immediately above? |
|
This PR contains at least two changes to
When The current PR has an attempt at addressing the lack of spaces in certain parts of the constructed command string. I suspect that |
Separated parts with a space and added /-i switch, which turns off the prompt by the xcopy command. I encountered this bug while trying to create the quickbin with
spork/declare-cc, and it stuck.